# New ports collection makefile for:	cdict5
# Date created:		2006-05-15
# Whom:			Gea-Suan Lin <gslin@cs.nctu.edu.tw>
#
# $Id: Makefile 205 2006-10-19 13:30:50Z gslin $
#

PORTNAME=	cdict5
PORTVERSION=	1.3
PORTREVISION=	1
CATEGORIES=	cs
MASTER_SITES=	http://www.cs.nctu.edu.tw/~gslin/files/
DISTNAME=	${PORTNAME}_${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}

MAINTAINER=	gslin@cs.nctu.edu.tw
COMMENT=	Chinese-English Dictionary

LIB_DEPENDS=	gdbm.3:${PORTSDIR}/databases/gdbm

PLIST_FILES=	bin/cdict bin/cdict5

ALL_TARGET=	${PORTNAME}
WRKSRC=		${WRKDIR}/${PORTNAME}

.include <bsd.port.pre.mk>

.if !exists(${LOCALBASE}/lib/cdict5/Index.gdbm)
IGNORE=		you need to install dictionary files
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${TARGETDIR}/bin
	${LN} ${TARGETDIR}/bin/${PORTNAME} ${TARGETDIR}/bin/cdict

.include <bsd.port.post.mk>
